From c82aef9e98779d950c9d9f523000da91ae875697 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 1 Nov 2006 18:39:33 +0000 Subject: [PATCH] Return the restored VM at the end of XendDomainInfo.restore. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 5d9a9a98be..93edfa7b03 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -249,6 +249,7 @@ def restore(config): vm = XendDomainInfo(XendConfig(sxp = config), resume = True) try: vm.resume() + return vm except: vm.destroy() raise -- 2.30.2